<!DOCTYPE html>
<html>
<head>
	<title>项目进度</title>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<link rel="stylesheet" href="../../css/bootstrap.min.css">
	<link rel="stylesheet" href="../../css/font-awesome.min.css">
	<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
	<link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
	<link rel="stylesheet" href="../../css/main.css">
	<script src="../../libs/jquery.min.js"></script>
	<script src="../../plugins/layer/layer.js"></script>
	<script src="../../libs/bootstrap.min.js"></script>
	<script src="../../libs/vue.min.js"></script>
	<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
	<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
	<script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
	<script src="../../js/common.js"></script>
</head>
<style type="text/css">

	.htc {
		padding-top: 50px;
	}

	.col-sm-10.pror {
		margin-left: -20px;
	}

	.col-sm-2.control-label.prol {
		width: 110px;
		height: 20px;
		text-align: right;
		margin-left: -20px;
		padding-right: 24px;
		padding-top: 5px;
	}

	.form-group.c1 {
		/* border: 1px solid red; */
		/* height: 35px; */
		width: 30%;
		float: left;
	}

	a.btn.btn-default.quer {
		/*margin-left: -775px;*/
		/*margin-right: 60px;*/
		/*margin-top: 40px;*/
	}
/*
	a.btn.btn-primary.wzhz {
		margin-top: 40px;

	}

	a.btn.btn-primary.xqdc {
		margin-top: 40px;

	}

	a.btn.btn-primary.xg {
		margin-top: 40px;
	}*/

</style>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">

			<!--<div class="form-group col-sm-4">
				<div class="col-sm-2 control-label prol">进度名称</div>
				<div class="col-sm-10 pror">
					<select class="form-control" v-model="p.sName">
						<option value="0">全部</option>
						<option value="1">施工复测</option>
						<option value="2">安全技术交流</option>
						<option value="3">现场开工</option>
						<option value="4">材料到场</option>
						<option value="5">中间检查</option>
						<option value="6">现场安全监督</option>
						<option value="7">现场施工质量监督</option>
						<option value="8">竣工自检</option>
					</select>
				</div>
			</div>

			<div class="form-group col-sm-4">
				<div class="col-sm-2 control-label prol">倒排工期</div>
				<div class="col-sm-10 pror">
					<input type="date" class="form-control" v-model="p.inverTime" placeholder="倒排工期"/>
				</div>
			</div>-->

			<!--<div class="form-group col-sm-2">-->
				<!--<div class="col-sm-2 control-label prol">项目名称</div>-->
				<!--<div class="col-sm-10 pror">-->
					<!--<select class="form-control" v-model="p.pGuid"  placeholder="项目名称" id="projectIdquesr"   >-->
					<!--<option v-for="d in allBase" :value="d.guid">-->
					<!--{{d.pBName}}</option>-->
					<!--</select>-->
					<!--&lt;!&ndash;<input type="text" class="form-control" v-model="p.pName" placeholder="项目名称"/>&ndash;&gt;-->
				<!--</div>-->
			<!--</div>-->

			<div class="form-group col-sm-2">
				<!--<select class="form-control" v-model="p.pGuid"  placeholder="项目名称"  id="projectIdquer"  >-->
					<!--<option v-for="d in allBase" :value="d.guid">-->
						<!--{{d.pBName}}</option>-->
				<!--</select>-->
				<input type="text" class="form-control"  v-model="p.psname"	@click="showprolist" readonly="true" />

			</div>

			<a class="btn btn-default" @click="reload" >查询</a>
			<!--<a v-if="hasPermission('csg:cschedule:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
			<a v-if="hasPermission('csg:cschedule:update')" class="btn btn-primary xg" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			<!--<a v-if="hasPermission('csg:cschedule:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>-->

			<a class="btn btn-primary wzhz" onclick="exportCSedule()"><i class="fa fa-pencil-square-o"></i>&nbsp;进度导出</a>
			<a class="btn btn-primary xqdc" onclick="exportCSeduleIms()"><i class="fa fa-trash-o"></i>&nbsp;导出照片</a>

		</div>

		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>

	<div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<!--<div class="form-group">
				<div class="col-sm-2 control-label">项目名称</div>
				<div class="col-sm-10">
					&lt;!&ndash;<input type="text" class="form-control" v-model="cSchedule.pGuid" placeholder="所属项目ID"/>&ndash;&gt;

					<select class="form-control" v-model="p.pGuid"  placeholder="项目名称"   >
						<option v-for="d in allBase" :value="d.guid">
							{{d.pBName}}</option>
					</select>


				</div>
			</div>-->
			<div class="form-group">
				<div class="col-sm-2 control-label">项目名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cSchedule.pName" placeholder="所属项目名称" readonly/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">进度名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cSchedule.sName" placeholder="进度名称" readonly/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">进度排序</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cSchedule.sSort" placeholder="进度排序" readonly/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">更新时间</div>
				<div class="col-sm-10">
					<input type="date" class="form-control" v-model="cSchedule.sTime" placeholder="更新时间" readonly/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">状态</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cSchedule.sDatastate" placeholder="状态"/>
				</div>
			</div>
			<div class="form-group" >
				<div class="col-sm-2 control-label">倒排工期</div>
				<div class="col-sm-10">
					<input type="date" class="form-control" v-model="cSchedule.inverTime" placeholder="倒排工期"/>
				</div>
			</div>
			<div class="form-group" >
				<div class="col-sm-2 control-label">控制节点</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cSchedule.controlPoint" placeholder="控制节点" readonly/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>

	<div id="deptLayermy" style="display: none;padding:10px; ">

		<div class="grid-btn">

			<div class="form-group col-sm-3">
				<input type="text"  class="form-control" v-model="p.ppppBName"  placeholder="项目名称">
			</div>
			<a class="btn btn-default" @click="reloadpro">查询</a>
		</div>


		<table id="jqGrid1" ></table>
		<div id="jqGridPager1" ></div>
	</div>

</div>

<script src="../../js/modules/csg/cschedule.js"></script>
</body>
</html>